package com.fh.controller;

import com.fh.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author whf
 * @date 2024年05月07日 16:46
 */
@RestController
@RequestMapping("redis")
public class RedisController {


    @Autowired
    private RedisService redisService;

    @RequestMapping("add")
    public String add(){
        redisService.add();
        return "成功";
    }

}
